package cn.bs.busuo.mall.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("mall_goods")
public class Goods implements Serializable {
    private Long id;
    private Long categoryId;
    private Long sellerId;
    private String categoryName;
    private String barCode;
    private String title;
    private String brief;
    private String coverUrl;
    private BigDecimal salePrice;
    private String keywords;
    private Integer total;
    private Integer usable;
    private Integer isRecommend;
    private Integer checkState;
    private Integer isPutOn;
    private Integer salesCount;
    private Integer commentCount;
    private Integer positiveCommentCount;
    private Integer negativeCommentCount;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("数据创建时间")
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("数据最后修改时间")
    private LocalDateTime gmtModified;
}
